package com.feng.study;

import com.feng.study.service.localhost.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableAsync
@SpringBootApplication()
public class StudyApplication {


    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(StudyApplication.class, args);

        UserService userService = context.getBean(UserService.class);
        System.out.println("userService=" + userService.getClass());
    }

}